﻿using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using Yes.Core.Json;

namespace Yes.Web.Blog.Areas.Admin.Controllers
{
    [Authorize]
    public class BaseController : Controller
    {
        /*
        protected override JsonResult Json(object data, string contentType, Encoding contentEncoding)
        {
            return new YesJsonResult { Data = data, ContentType = contentType, ContentEncoding = contentEncoding };
        }

        public new JsonResult Json(object data, JsonRequestBehavior jsonRequest)
        {
            return new YesJsonResult { Data = data, JsonRequestBehavior = jsonRequest };
        }
        public new JsonResult Json(object data)
        {
            return new YesJsonResult { Data = data, JsonRequestBehavior = JsonRequestBehavior.AllowGet };
        }*/
    }
}